package com.tsingteng.cosfun.ui.cosfun.imodel;


import com.tsingteng.cosfun.bean.BaseDataBean;
import com.tsingteng.cosfun.bean.FollowBean;
import com.tsingteng.cosfun.bean.ParagraphBean;
import com.tsingteng.cosfun.bean.PersonBean;
import com.tsingteng.cosfun.bean.PullBlackBean;
import com.tsingteng.cosfun.bean.VidePersonBean;
import com.tsingteng.cosfun.bean.WorkBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import retrofit2.Callback;

public class PersonCenterModel extends BaseModel implements IPersonCenterModel {


    @Override
    public void getPersonInfo(long profileId,
                              Callback<BaseDataBean<PersonBean>> callback) {
        doRxRequest().getPersonInfo(profileId).enqueue(callback);
    }

    @Override
    public void getParagraphList(long userId, String c, String showType, String page_no, String page_size, String deviceId, Callback<BaseDataBean<ParagraphBean>> callback) {
//        doRxRequest().getParagraph(userId, c, showType, page_no, page_size, deviceId).enqueue(callback);

    }

    @Override
    public void getWorkList(long userId, String c, String showType, String page_no, String page_size, String deviceId, Callback<BaseDataBean<VidePersonBean>> callback) {
        doRxRequest().getWork(userId, c, showType, page_no, page_size, deviceId).enqueue(callback);
    }

    @Override
    public void getReadPullBlackStateInfo(int user_id, Callback<PullBlackBean> workCallback) {
        doRxRequest().readPullBlackBlack(user_id + "").enqueue(workCallback);
    }

    @Override
    public void getPullBlackInfo(int user_id, Callback<PullBlackBean> workCallback) {
        doRxRequest().pullBlackUser(user_id + "").enqueue(workCallback);
    }

    @Override
    public void getCancelPullBlackInfo(int user_id, Callback<PullBlackBean> workCallback) {
        doRxRequest().cancelPullBlack(user_id + "").enqueue(workCallback);
    }

    @Override
    public void getFollowNotification(String id, Callback<BaseDataBean<FollowBean>> callback) {
        doRxRequest().followPerson(id).enqueue(callback);
    }

    @Override
    public void getNoFollowNotification(String id, Callback<BaseDataBean<FollowBean>> callback) {
        doRxRequest().noFollow(id).enqueue(callback);
    }

}
